<h3>Revolution Checkin Home Page</h3>


<div id="select-service" class="form">
	<%= render :partial => "select_service" %>
</div>



<div id="info-panel" class="form">
	<%= render :partial => "info_panel" %>	
</div>

<div id="controls">
	<%= link_to "Add Household", :controller => 'households', :action => 'new' %> | 
	<%= link_to "Guest Household Quick Add", :controller => "households", :action => "quick_add" %>
	<span id='progress' style='display:none;'><img src='/images/working.gif'></span>
	
</div>



<div id="search">
	<%= render :partial => "search" %>
</div>

<div id="people-list">
	<% if not @curr_instance.nil? %>
	<%= render :partial => "households" %>
	<% else %>
	<div id="message">
		Please setup events and instances and select the desired instance for checkin. 
	</div>
	<% end %>
</div>


<br/>
<div id="wristband-wrap">
	<%= render :partial => "wristband" %>
</div>

         
<br/>
<div id="pickup-receipt-wrap">
	<%= render :partial => "pickup_receipt" %>
</div>

<div style="float:none;clear:both;">
	&nbsp;
</div>

<% content_for :dashboard do %>
	<div>
	<% instance_id = Setting.one.current_instance %>
	<% @curr_meetings = Meeting.find_by_selected_instance_include(instance_id) %>

	<% unless @curr_meetings.empty? %>
		<%= render :partial => "dashboard" %>
	<% else %>
		<div id="message">
			This Service-Instance has no meetings. <br/>		
		</div>
	<% end %>
	<%= link_to "Add Meetings", :controller => 'instances', :action => 'show', :id => instance_id  %>
	</div>
<% end %>








